package uy.edu.ort.negocio;

/**
 *
 * @author 153287 - 154559
 */
public abstract class WrapperCarga {
    
    /**
     * String value message
     */
    protected String message;
    
    /**
     * int value exitos
     */
    protected int exitos;
    
    /**
     * int value errores.
     */
    protected int errores;
    
    /**
     * Constructor Wrapper
     */
    protected WrapperCarga() {
        this.exitos = 0;
        this.errores = 0;
    }
    
    /**
     * Agrega exitos
     */
    protected void addExitoso() {
        this.exitos++;
    }
    
    /**
     * Agrega Errores
     */
    protected void addErroneo() {
        this.errores++;
    }
    
    /**
     * Retorna exitos
     * @return 
     */
    protected int getExitosos() {
        return exitos;
    }

    /**
     * Retorna errores
     * @return 
     */
    protected int getErroneos() {
        return errores;
    }
    
    /**
     * Asigna message
     * @param message 
     */
    protected void setMessage(String message) {
        this.message = message;
    }
    
    /**
     * Retorna message
     * @return 
     */
    protected String getMessage() {
        return this.message;
    }
    
    @Override
    public abstract String toString();
}
